package com.sql.weeego.bean.base;

/**
 * UchomeBlacklistId entity. @author MyEclipse Persistence Tools
 */

public class UchomeBlacklistId implements java.io.Serializable {

	// Fields

	private Integer uid;
	private Integer buid;

	// Constructors

	/** default constructor */
	public UchomeBlacklistId() {
	}

	/** full constructor */
	public UchomeBlacklistId(Integer uid, Integer buid) {
		this.uid = uid;
		this.buid = buid;
	}

	// Property accessors

	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getBuid() {
		return this.buid;
	}

	public void setBuid(Integer buid) {
		this.buid = buid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UchomeBlacklistId))
			return false;
		UchomeBlacklistId castOther = (UchomeBlacklistId) other;

		return ((this.getUid() == castOther.getUid()) || (this.getUid() != null
				&& castOther.getUid() != null && this.getUid().equals(
				castOther.getUid())))
				&& ((this.getBuid() == castOther.getBuid()) || (this.getBuid() != null
						&& castOther.getBuid() != null && this.getBuid()
						.equals(castOther.getBuid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUid() == null ? 0 : this.getUid().hashCode());
		result = 37 * result
				+ (getBuid() == null ? 0 : this.getBuid().hashCode());
		return result;
	}

}